package com.example.sjc715.main.ui.mine

import android.os.Bundle
import android.transition.Visibility
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.view.isVisible
import com.alibaba.android.arouter.launcher.ARouter
import com.example.commonlibrary.mvi.BaseFragment
import com.example.commonlibrary.mvi.BaseViewModel
import com.example.sjc715.R
import com.example.sjc715.databinding.FragmentMineBinding
import com.tencent.mmkv.MMKV


class MineFragment : BaseFragment<FragmentMineBinding,BaseViewModel<*,*>>() {
    override fun initView() {
        val mmkv = MMKV.defaultMMKV()
        if(mmkv.decodeString("a","") == ""){
            binding.btn.setOnClickListener {
                ARouter.getInstance().build("/mine/login").navigation()
                binding.il1.isVisible = !binding.il1.isVisible
                binding.il2.isVisible = !binding.il2.isVisible
            }
        }else{
            binding.il1.isVisible = !binding.il1.isVisible
        }

    }

    override fun initData() {

    }

}